package com.leyou.item.entity;




import java.util.List;

public class TbSpuBo extends TbSpu {

    private  String cname;
    private String bname;
    private TbSpuDetail spuDetail;
    private List<TbSku> skus;

    @Override
    public String toString() {
        return "SpuBo{" +
                "cname='" + cname + '\'' +
                ", bname='" + bname + '\'' +
                ", spuDetail=" + spuDetail +
                ", skus=" + skus +
                '}';
    }

    public TbSpuDetail getSpuDetail() {
        return spuDetail;
    }

    public void setSpuDetail(TbSpuDetail spuDetail) {
        this.spuDetail = spuDetail;
    }

    public List<TbSku> getSkus() {
        return skus;
    }

    public void setSkus(List<TbSku> skus) {
        this.skus = skus;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public String getBname() {
        return bname;
    }

    public void setBname(String bname) {
        this.bname = bname;
    }


}


/*
package com.leyou.item.entity;

import javax.persistence.Transient;
import java.util.List;

public class TbSpuBo extends TbSpu{

    @Transient
    private String cname;
    @Transient
    private String bname;
    @Transient
    private TbSpuDetail spuDetail;
    @Transient
    private List<TbSku> skus;

    public TbSpuDetail getSpuDetail() {
        return spuDetail;
    }

    public void setSpuDetail(TbSpuDetail spuSpuDetail) {
        this.spuDetail = spuSpuDetail;
    }

    public List<TbSku> getSkus() {
        return skus;
    }

    public void setSkus(List<TbSku> skus) {
        this.skus = skus;
    }

    public TbSpuBo() {
    }

    public TbSpuBo(String cname, String bname) {
        this.cname = cname;
        this.bname = bname;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public String getBname() {
        return bname;
    }

    public void setBname(String bname) {
        this.bname = bname;
    }
}
*/
